cmake_minimum_required(VERSION 3.20)
project(serial LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

add_executable(main main.cpp SerialPort.cpp)
if (WIN32)
    target_link_libraries(main PRIVATE setupapi)
endif()
